<?php
	$payment_id = $params[0];
	$sql = "SELECT * FROM `tbl_payment` WHERE `payment_id` = '$payment_id' LIMIT 1";
	$query = mysql_query($sql);
	while($result = mysql_fetch_assoc($query)) {
		$name			= $result['name'];
		$slip			= $result['slip'];
		$total			= $result['total'];
		$date			= $result['date'];
		$add_date		= $result['add_date'];
	}
	mysql_free_result($query);
 
?>